home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 4.iso / src / exampleCode / viewkit / builderExamples / stopwatch / Control.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-08-02  |  1.4 KB  |  61 lines

  1. //////////////////////////////////////////////////////////////
  2. //
  3. // Header file for Control
  4. //
  5. //    This file is generated by BuildXcessory. DO NOT MODIFY. 
  6. //    USE SUBCLASSING INSTEAD
  7. //
  8. //    This class is a user interface "component", as described
  9. //    in "Object-Oriented Programming with C++ and OSF/Motif",
  10. //    by Douglas Young, Prentice Hall, 1992. ISBN 0-13-630252-1
  11. //
  12. //    If you directly modify this file, you may lose your 
  13. //    changes if it is  regenerated by the builder again.
  14. //
  15. //////////////////////////////////////////////////////////////
  16. #ifndef CONTROL_H
  17. #define CONTROL_H
  18. #include <Vk/VkComponent.h>
  19.  
  20. class Control : public VkComponent
  21.  
  22.   public:
  23.  
  24.     Control(const char *, Widget);
  25.     ~Control();
  26.     const char *  className();
  27.  
  28.   protected: 
  29.  
  30.     // Classes created by this class
  31.  
  32.  
  33.     // Widgets created by this class
  34.  
  35.     Widget  _control;
  36.     Widget  _startButton;
  37.     Widget  _stopButton;
  38.  
  39.  
  40.     // These virtual functions are called from the private callbacks (above)
  41.     // Intended to be overriden in derived classes to define actions
  42.  
  43.     virtual void start ( Widget, XtPointer );
  44.     virtual void stop ( Widget, XtPointer );
  45.  
  46.   private: 
  47.  
  48.     // Array of default resources
  49.  
  50.     static String      _defaultControlResources[];
  51.  
  52.     // Callbacks to interface with Motif
  53.  
  54.     static void startCallback (Widget, XtPointer, XtPointer);
  55.     static void stopCallback (Widget, XtPointer, XtPointer);
  56.  
  57. };
  58. #endif
  59.  
  60.